import { ref, computed} from 'vue'

export default function() {
    let num = ref(1);
    let num1 = computed(()=>{
        return 10 * num.value    
    });
    function addNum() {
      num.value++;
    }
    return {num,num1,addNum}
}